package com.yj.service;

public class FooImpl implements Foo{
    private Bar bar;
    @Override
    public boolean checkCodeDuplicate(String code) {
        return bar.getAllCodes().contains(code);
    }

    public Bar getBar() {
        return bar;
    }

    public void setBar(Bar bar) {
        this.bar = bar;
    }
}
